FROM index.alauda.cn/zhulige/newbee_core_rc2:1.0.0-core-build

RUN mkdir -p /dotnetapp
COPY . /dotnetapp
WORKDIR /dotnetapp/WebApi

RUN dotnet restore

RUN dotnet build

EXPOSE 80

ENTRYPOINT ["dotnet", "run"]

#ONBUILD COPY . /dotnetapp
#ONBUILD RUN dotnet restore